import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/assets/css/base.css'

import moment from 'moment'

// 全局过滤器
Vue.filter('fmtdata',(v)=>{
  return moment(v).format('YYYY-MM-DD')
})

// import axios from 'axios'
// Vue.prototype.$http = axios

import MyServerHttp from '@/plugin/http.js'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import Mock from './mock' // 刚刚手写的mock.js文件
import axios from 'axios' // axios http请求库

axios.defaults.baseURL = 'http://mockjs.com/api' // 设置默认请求的url
Vue.prototype.$http = axios

Vue.use(ElementUI);
Vue.use(MyServerHttp);


Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
